package xyz.awesomeman.controller;

import java.util.ArrayList;
import java.util.List;
import java.util.Map;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
public class FreeMarkerController {
	
	@RequestMapping("/name")
	public String setName(Map<String,Object> result){
		result.put("name", "yushengjun");
		result.put("sex", "1");
		List<String> listResult = new ArrayList<String>();
		listResult.add("zhangsan");
		listResult.add("lisi");
		listResult.add("itmayiedu");
		result.put("listResult", listResult);
		return "index";

	}
}
